
                    <p style="margin-left:.0001pt;text-align:justify;">1【习题】运行Hello World工程&nbsp;</p> 
<p style="margin-left:.0001pt;text-align:justify;">习题内容</p> 
<p style="margin-left:.0001pt;text-align:justify;">判断题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1.&nbsp;main_pages.json存放页面page路径配置信息。（正确）</p> 
<p style="margin-left:.0001pt;text-align:justify;">2.&nbsp;DevEco Studio是开发<a href="https://so.csdn.net/so/search?q=HarmonyOS&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=HarmonyOS&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;HarmonyOS\&quot;}&quot;}" data-tit="HarmonyOS" data-pretit="harmonyos">HarmonyOS</a>应用的一站式集成开发环境。（正确）</p> 
<p style="margin-left:.0001pt;text-align:justify;">单选题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1.&nbsp;在stage模型中，下列<a href="https://so.csdn.net/so/search?q=%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6&amp;spm=1001.2101.3001.7020" target="_blank" class="hl hl-1" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;dest&quot;:&quot;https://so.csdn.net/so/search?q=%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6&amp;spm=1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;searchword\&quot;:\&quot;配置文件\&quot;}&quot;}" data-tit="配置文件" data-pretit="配置文件">配置文件</a>属于AppScope文件夹的是？（C）</p> 
<p style="margin-left:.0001pt;text-align:justify;">A. main_pages.json</p> 
<p style="margin-left:.0001pt;text-align:justify;">B. module.json5</p> 
<p style="margin-left:.0001pt;text-align:justify;">C. app.json5</p> 
<p style="margin-left:.0001pt;text-align:justify;">D. package.json</p> 
<p style="margin-left:.0001pt;text-align:justify;">多选题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1.&nbsp;如何在DevEco Studio中创建新项目？（BC）</p> 
<p style="margin-left:.0001pt;text-align:justify;">A. 在计算机上创建一个新文件，并将其命名为“new harmonyOS项目”</p> 
<p style="margin-left:.0001pt;text-align:justify;">B. 如果已打开项目，从DevEco Studio菜单选择'file&gt;new&gt;Create Project'</p> 
<p style="margin-left:.0001pt;text-align:justify;">C. 如果第一次打开DevEco Studio，在欢迎页点击“Create new Project”</p> 
<p style="margin-left:.0001pt;text-align:justify;">2.&nbsp;module.json5配置文件中，包含了以下哪些信息？（ABD）</p> 
<p style="margin-left:.0001pt;text-align:justify;">A. ability的相关配置信息</p> 
<p style="margin-left:.0001pt;text-align:justify;">B. 模块名</p> 
<p style="margin-left:.0001pt;text-align:justify;">C. 应用的版本号</p> 
<p style="margin-left:.0001pt;text-align:justify;">D. 模块类型</p> 
<p style="margin-left:.0001pt;text-align:justify;"><span style="background-color:#ffffff;"><span style="color:#333333;">2</span></span><span style="background-color:#ffffff;"><span style="color:#333333;">【习题】ArkTS基础知识</span></span></p> 
<p style="margin-left:.0001pt;text-align:justify;">习题内容</p> 
<p style="margin-left:.0001pt;text-align:justify;">判断题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1. 循环渲染ForEach可以从数据源中迭代获取数据，并为每个数组项创建相应的<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;组件\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;组件\&quot;}&quot;}" data-tit="组件" data-pretit="组件">组件</span>。（正确）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">2. @Link变量不能在组件内部进行初始化。（正确）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">单选题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1. 用哪一种装饰器修饰的struct表示该结构体具有组件化能力？（A）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. @Component</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. @Entry</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. @Builder</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">D. @Preview</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">2. 用哪一种装饰器修饰的自定义组件可作为页面入口组件？（B）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. @Component</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. @Entry</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. @Builder</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">D. @Preview</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">多选题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1. 下面哪些<span class="edu-hl hl hl-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;函数\&quot;}&quot;}" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.7020&quot;,&quot;extra&quot;:&quot;{\&quot;word\&quot;:\&quot;函数\&quot;}&quot;}" data-tit="函数" data-pretit="函数">函数</span>是自定义组件的生命周期函数？（ABCDE）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. aboutToAppear</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. aboutToDisappear</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. onPageShow</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">D. onPageHide</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">E. onBackPress</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">2. 下面哪些装饰器可以用于管理自定义组件中变量的状态？（CD）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. @Component</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. @Entry</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. @State</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">D. @Link</p> 
<p style="margin-left:.0001pt;text-align:justify;"><span style="background-color:#ffffff;"><span style="color:#333333;">3</span></span><span style="background-color:#ffffff;"><span style="color:#333333;">【习题】应用程序框架</span></span><span style="background-color:#ffffff;"><span style="color:#333333;">&nbsp;</span></span></p> 
<p style="margin-left:.0001pt;text-align:justify;">习题内容</p> 
<p style="margin-left:.0001pt;text-align:justify;">判断题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1. 一个应用只能有一个Ability。（错误）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">2. 创建的Empty Ability模板工程，初始会生成一个Ability文件。（正确）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">3. 每调用一次<span class="words-blog hl-git-1" data-report-view="{&quot;spm&quot;:&quot;1001.2101.3001.10283&quot;,&quot;extra&quot;:&quot;{\&quot;words\&quot;:\&quot;router\&quot;}&quot;}" data-tit="router" data-pretit="router">router</span>.push()方法，页面路由栈数量均会加1。（错误）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">单选题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1. API9及以上，router.push()方法，默认的跳转页面使用的模式是哪一种？（A）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. Standard</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. Single</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. Specified</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">2. Ability启动模式需要在module.json5文件中配置哪个字段？（C）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. module</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. skills</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. launchType</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">D. abilities</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">多选题</p> 
<p style="margin-left:.0001pt;text-align:justify;">1. API9及以上，router.push()方法的mode参数可以配置为以下哪几种跳转页面使用的模式？（AB）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. Standard</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">B. Single</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">C. Specified</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">2. Ability的生命周期有哪几个状态？（ACDF）</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p> 
<p style="margin-left:.0001pt;text-align:justify;">A. Create</p> 
<p style="margin-left:.0001pt;text-align:justify;"></p>
                